<? if (! defined('BASEPATH')) exit('No direct script access allowed');
function site()
{
	$CI =& get_instance();
	$index = $CI->config->item('index_page') ; 
	if($index)
		return  $CI->config->base_url().'/'.$index.'/';
	else
		return $CI->config->base_url();
}

function url($uri = '')
{
	$CI =& get_instance();
	return $CI->config->base_url($uri);
}

if ( ! function_exists('stream_url'))
{
	function stream_url()
	{
		$CI =& get_instance();
		return $CI->config->slash_item('stream_url');
	}
}
if ( ! function_exists('show_url'))
{
	function show_url()
	{
		$CI =& get_instance();
		return $CI->config->slash_item('show_url');
	}
}

if ( ! function_exists('music_url'))
{
	function music_url()
	{
		$CI =& get_instance();
		return $CI->config->slash_item('music_url');
	}
}
if ( ! function_exists('images_url'))
{
	function images_url()
	{
		$CI =& get_instance();
		return $CI->config->slash_item('images_url');
	}
}

function get_alias($str)
{
	$alias = str_replace(".html",'', $str);
	return $alias;
}

?>